package com.douhao.personal.model;

import java.io.Serializable;
import java.util.LinkedList;
import java.util.List;

public class Role implements Serializable {

    private static final long serialVersionUID = 7047415157108856063L;
    private Long id;
    /**角色名称*/
    private String name;
    /**角色类型*/
    private String type;

    private List<Permission> permissions = new LinkedList<Permission>();

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public List<Permission> getPermissions() {
        return permissions;
    }

    public void setPermissions(List<Permission> permissions) {
        this.permissions = permissions;
    }
}
